def resolution1():
    small = 0
    large = 0
    number = 0
    space = 0

    strs = input()

    for ch in strs:
        if ch.islower():
            small += 1
        elif ch.isupper():
            large += 1
        elif ch.isdigit():
            number += 1
        elif ch.isspace():
            space += 1
    print(f"小写字母={small}")
    print(f"大写字母={large}")
    print(f"数字={number}")
    print(f"空格={space}")


if __name__ == '__main__':
    resolution1()